package com.example.sys.authority.service;

import com.example.core.hql.HQLInfo;
import com.example.core.service.BaseService;
import com.example.shiro.utils.UserAuthInfo;
import com.example.sys.authority.dao.SysAuthorityDao;
import com.example.sys.authority.model.SysAuthority;

import java.util.List;

public interface SysAuthorityService extends BaseService<SysAuthorityDao, SysAuthority> {

    public List<String> getModelAuthority(UserAuthInfo userAuthInfo, String modelName) throws Exception;

    public Boolean checkAuthority(UserAuthInfo userAuthInfo, String modelName, String modelId, int fdKey) throws Exception;

    public HQLInfo buildQueryHQL(UserAuthInfo userAuthInfo, HQLInfo hqlInfo) throws Exception;
}
